package com.huangmb.anymark.app.activity;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import com.huangmb.anymark.app.R;
import com.huangmb.anymark.app.activity.base.AppBaseActivity;
import com.huangmb.anymark.app.fragment.MainActivityFragment;


public class MainActivity extends AppBaseActivity {


    @Override
    protected void onInitView(Bundle savedInstanceState) {

        setContentView(R.layout.activity_main);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

    }

    @Override
    protected void afterInitView(Bundle savedInstanceState) {
        super.afterInitView(savedInstanceState);
        getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.fragment,new MainActivityFragment())
                .commit();
    }
}
